var novel = {
  go_page_from_home() {
    console.log("novel go_page_from_home");
    this.start();
  },
  start() {
    console.log("novel start");
    this.init();
  },
  init() {
    console.log("novel init");
    this.execute(10000);
  },
  execute(duration) {
    console.log("novel execute start");
    while (duration > 0) {
      swipe(
        (device.width / 10) * 9,
        device.height / 2,
        (device.width / 10) * 2,
        device.height / 2,
        500
      );
      sleep((5 + random(1, 3)) * 1000);
      if (utils.click_text("我知道了")) {
      }
      duration = duration - 1;
    }
    console.log("novel execute end");
    this.after();
  },
  after() {
    console.log("novel after");
    this.next();
  },
  next() {
    console.log("novel next");
  },
};
